﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Data;

namespace EnglishRemix.Services.Model
{
    [DataContract]
    public class User
    {
        public string Id;
        public string Name;
        public string Password;
        public string Email;
        public string ActivationStatus;
        public string Level;
        public string Coin;
        public string CreatedOn;
        public string LastLoginDate;
        public List<String> favorites = new List<String>();

        public User()
        {
            // ' ' indicates string
            Id = "0";
            Name = "''";
            Password = "''";
            Email = "''";
            ActivationStatus = "0";
            Level = "0";
            Coin = "0";
            CreatedOn = "''";
            LastLoginDate = "''";
        }

        public User(DataRow dateRow)
        {
            // User ' ' to indicate string
            Id = dateRow["Id"].ToString();
            Name = dateRow["Name"].ToString();
            Password = dateRow["Password"].ToString();
            Email = dateRow["Email"].ToString();
            ActivationStatus = dateRow["ActivationStatus"].ToString();
            Level = dateRow["Level"].ToString();
            Coin = dateRow["Coin"].ToString();
            CreatedOn = dateRow["CreatedOn"].ToString();
            LastLoginDate = dateRow["LastLoginDate"].ToString();
        }
    }
}